# coding: utf-8

template = '''
---
- hosts: all
{% if sudo %}
  sudo: true
{% endif %}
{% if sudo %}
  sudo_user: {{sudo_user}}
{% endif %}
  tasks:
    - name: {{task_name}}
      script: {{script_path}} {{script_args}}
'''

def render_template(data):
    playbook = ''
    return playbook